package com.xiaoyu.lanling.feature.mission.viewholder

import `in`.srain.cube.views.list.CubeRecyclerViewAdapter
import com.xiaoyu.lanling.feature.mission.model.MissionBaseItem

class MissionViewHolderManager {

    companion object {
        const val TYPE_TITLE = 0
        const val TYPE_MISSION = 1

        fun bindViewHolder(adapter: CubeRecyclerViewAdapter<MissionBaseItem>) {
            adapter.setViewHolderClass(TYPE_TITLE, null, MissionTitleViewHolder::class.java, 9)
            adapter.setViewHolderClass(TYPE_MISSION, null, MissionViewHolder::class.java, 9)
        }
    }
}